-- GENERATED SPELL FOR [Constrictor Vine] --


function spell0_12220(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(11922,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12220', 16500, 1)
end

function Sorts_12220(pUnit, Event)
local choix_sorts_12220 = math.random(0, 0)
if choix_sorts_12220 == 0 then
pUnit:RegisterEvent('spell0_12220', 1, 1)
end
end

function mob12220_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12220', math.random(1500, 3000), 1)
end

function mob12220_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12220_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12220_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12220, 1, 'mob12220_Action')
RegisterUnitEvent(12220, 2, 'mob12220_Leave')
RegisterUnitEvent(12220, 3, 'mob12220_Kill')
RegisterUnitEvent(12220, 4, 'mob12220_Die')
